package com.cms.attachment.mapper;

import java.util.List;
import com.cms.attachment.domain.CmsAttachment;

/**
 * 文章附件Mapper接口
 * 
 * @author rjxy
 * @date 2025-09-29
 */
public interface CmsAttachmentMapper 
{
    /**
     * 查询文章附件
     * 
     * @param id 文章附件主键
     * @return 文章附件
     */
    public CmsAttachment selectCmsAttachmentById(Long id);

    /**
     * 查询文章附件列表
     * 
     * @param cmsAttachment 文章附件
     * @return 文章附件集合
     */
    public List<CmsAttachment> selectCmsAttachmentList(CmsAttachment cmsAttachment);

    /**
     * 新增文章附件
     * 
     * @param cmsAttachment 文章附件
     * @return 结果
     */
    public int insertCmsAttachment(CmsAttachment cmsAttachment);

    /**
     * 修改文章附件
     * 
     * @param cmsAttachment 文章附件
     * @return 结果
     */
    public int updateCmsAttachment(CmsAttachment cmsAttachment);

    /**
     * 删除文章附件
     * 
     * @param id 文章附件主键
     * @return 结果
     */
    public int deleteCmsAttachmentById(Long id);

    /**
     * 批量删除文章附件
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmsAttachmentByIds(Long[] ids);
}
